home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-06
/
segue.exe
/
NCOPIES.PRG
< prev
next >
Wrap
Text File
|
1991-10-28
|
1KB
|
45 lines
*.............................................................................
*
* Program Name: NCOPIES.PRG Copyright: HRF Associates, Inc.
* Date Created: 10/28/11 Language: Clipper
* Time Created: 22:05:08 Author: Bob Fogle
*
*.............................................................................
* Supplemental SEGUE function for setting number of copies to be printed by spooler.
* Functionally equivilent to N_COPIES function in NETLIB library except it provides
* for 255 copies instead of 99.
*
FUNCTION NCOPIES_
*Purpose : To specify banner page text.
*Usage : NCOPIES_([<expN1>])
* :
* Where : <expN1> = Copies [1..255]
* :
PARAMETERS copies
LOCAL mcopies
PRIVATE rtn :=0
do while .t.
* Check to make sure passed variable types are correct.
if valtype(copies)<>'N' .AND. copies<>nil
rtn = -101
exit
endi
* Set up defaults
mcopies = if(valtype(copies)=='N',copies,0)
mcopies = if(mcopies=0,1,mcopies) // Treat zero as one.
* Get/Set copies (form) number
if pcount()=0 // If no arguments, return current setting.
rtn = PRJBDFG(5) // Get Default Print Job Flags (Number of Copies)
else
rtn = PRJBDFS(,,,,mcopies) // Set Default Print Job Flags (Number of Copies)
endi
exit
endd
RETURN rtn